﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AusProject.OrderDataControls;
using AusProject.OrderComponents;


namespace AusProject
{
    public class OrderSummaryFormInfo
    {
        private int id;

        public int Id
        {
            get { return id; }
        }

        public string Title { get; set; }

        public int Width { get; set; }

        public int Height { get; set; }

        public List<DataBoxInfo> MainTitleDataBoxes { get; set; }

        public List<OrderComponentInfo> OrderComponents { get; set; }

        public int MainTitleHeight { get; set; }


        public OrderSummaryFormInfo(int id, string title, int width, int height, List<DataBoxInfo> mainTitleDataBoxes, List<OrderComponentInfo> orderComponents, int mainTitleHeight)
        {
            this.id = id;
            Title = title;
            Width = width;
            Height = height;
            MainTitleDataBoxes = mainTitleDataBoxes;
            OrderComponents = orderComponents;
            MainTitleHeight = mainTitleHeight;
        }

        public OrderSummaryFormInfo(string title, int width, int height, List<DataBoxInfo> mainTitleDataBoxes, List<OrderComponentInfo> orderComponents, int mainTitleHeight)
        {
            this.id = -1;
            Title = title;
            Width = width;
            Height = height;
            MainTitleDataBoxes = mainTitleDataBoxes;
            OrderComponents = orderComponents;
            MainTitleHeight = mainTitleHeight;
        }

        public override string ToString()
        {
            return this.Title + "  <#" + this.Id + ">";
        }
    }
}